package com.cx.base.day20_enum.enumernation;

/**
 * @author shkstart
 * @date 8/3/2019 - 9:29 AM
 */
public enum Test2_Enum {

    SPRING("chun") {
        public void test() {
            System.out.println("春天");
        }
    },
    SUMMER("xian") {
        public void test() {
            System.out.println("夏天");
        }
    },
    AUTUMN("qiu") {
        public void test() {
            System.out.println("秋天");
        }
    },
    WINTER("dong") {
        public void test() {
            System.out.println("冬天");
        }
    };
    private String season;

    Test2_Enum(String season) {
        this.season = season;
    }

    public abstract void test();

    public void test(int a) {
        System.out.println(a);
    }

    //    spring,
//    summer,
//    autumn,
//    winter
    public static void main(String[] args) {
        Test2_Enum[] es2 = Test2_Enum.values();
        System.out.println(es2.length);
        Test2_Enum es = Test2_Enum.AUTUMN;
        es.test();
        es.test(2);

    }
}
